package com.itheima.feign;

import com.itheima.dto.OrdersStatisticsDto;
import com.itheima.result.Result;
import com.itheima.vo.*;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "sky-orders")
public interface OrderClient {


    @GetMapping("/admin/order/ordersStatistics")
    public Result<OrderReportVO> orderStatistics(OrdersStatisticsDto statisticsDto);

    @GetMapping("/admin/order/top10")
    public Result<SalesTop10ReportVO> top(OrdersStatisticsDto dto);

    @GetMapping("/admin/order/turnoverStatistics")
    public TurnoverReportVO turnoverStatistics(OrdersStatisticsDto statisticsDto);

//    @GetMapping("/admin/order/getBusinessData")
//    public BusinessDataVO getBusinessData(LocalDateTime begin, LocalDateTime end);

//    @GetMapping("/admin/order/getData")
//    public List<BusinessDataVO> getData(LocalDate begin, LocalDate end);

    @GetMapping("/admin/order/overviewOrders")
    public OrderOverViewVO overviewOrders();
    @GetMapping("/admin/order/businessData")
    public BusinessDataVO businessData();
}
